package controller;

import view.*;

public class Main {
	private ChessGUI view;
	private ChessController controller;
	private GUIBridge gb;
	public UnRedoer unre;

	public Main () {
		gb = new GUIBridge(this);
		view = new ChessGUI(gb);
		controller = new ChessController();
		unre = new UnRedoer();
		controller.setMain(this);
		controller.getGameState().addGameStateListener(unre);
		gb.setController(controller);
		gb.setView(view);
	}
	
	public static void main (String [] args) {
		new Main();
	}
}
